import { UserFilled } from '@element-plus/icons-vue'
import Person from '@/views/person/index.vue'

export default [
    {
        path: '/person',
        component: Person,
        meta: { title: '人员管理', icon: UserFilled },
        children: [
            {
                path: '/person/insider',
                name: 'PersonInsider',
                component: () => import('@/views/person/Insider/index.vue'),
                meta: { title: '内部人员', icon: UserFilled }
            },
            {
                path: '/person/outsiders',
                name: 'PersonOutsiders',
                component: () => import('@/views/person/outsiders/index.vue'),
                meta: { title: '外部人员', icon: UserFilled }
            },
            // {
            //     path: '/person/authorize',
            //     name: 'Authorize',
            //     component: () => import('@/views/person/authorize/index.vue'),
            //     meta: { title: '授权管理', icon: UserFilled },
            //     children: [
            {
                path: '/person/authorize/internalAuthorize',
                name: 'InternalAuthorize',
                component: () => import('@/views/person/authorize/internalAuthorize/index.vue'),
                meta: { title: '内部授权', icon: UserFilled }
            }, {
                path: '/person/authorize/externalAuthorize',
                name: 'ExternalAuthorize',
                component: () => import('@/views/person/authorize/externalAuthorize/index.vue'),
                meta: { title: '外部授权', icon: UserFilled }
            }
            //     ]

            // }
            , {
                path: '/person/passRecord',
                name: 'PassRecord',
                component: () => import('@/views/person/passRecord/index.vue'),
                meta: { title: '通行记录', icon: UserFilled }
            }
        ]

    },
]
